home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d7 / boyan5a.arc / INSTALL#.BAT < prev    next >
DOS Batch File  |  1991-05-28  |  6KB  |  145 lines

  1. echo off
  2. if not (%2)==() goto 40
  3. cls
  4. echo ╒════════════════════════════════════════════════════╕
  5. echo │   This INSTALL#.BAT batch file is meant to be      │
  6. echo │   run only by the main installation batch file,    │
  7. echo │   INSTALL.BAT (found on Distribution Disk #1).     │
  8. echo │                                                    │
  9. echo │   To install all BOYAN files, use the command:     │
  10. echo │       INSTALL drive:\path                          │
  11. echo ╘════════════════════════════════════════════════════╛
  12. goto end
  13. :40
  14. echo ├────────────────────────────────────────────────────┐
  15. if not exist %1\boyan.* goto 42
  16. echo │   Renaming previous BOYAN files to BOYANOLD.* ...  │
  17. copy %1\boyan.* %1\boyanold.*
  18. del %1\boyan.*
  19. :42
  20. echo │   Installing BOYAN program files ...               │
  21. pkunzip -o BOYAN5A %1 boyan.com boyan.hlp > nul
  22. echo │   Installing overlay files ...                     │
  23. pkunzip -o BOYAN5A %1 boyan.00? > nul
  24. echo │   Installing BOYAN Action Modules ...              │
  25. pkunzip -o BOYAN5A %1 *.bam *.cnf > nul
  26. if (%2)==(floppy) goto 45
  27. echo │   Installing "README" files ...                    │
  28. pkunzip -o BOYAN5A %1 read*.* *.doc *.txt > nul
  29. echo │   Installing Desqview and Windows PIF files ...    │
  30. pkunzip -o BOYAN5A %1 *.dvp *.pif > nul
  31. echo │   Installing BOYAN script files ...                │
  32. pkunzip -d -o BOYAN5A %1\SCRIPT *.bsc > nul
  33. echo │   Creating subdirectories: UL, DL, HOST, FON, ...  │
  34. pkunzip -d -o BOYAN5A %1\UL install.bat > nul
  35. del %1\UL\install.bat
  36. pkunzip -d -o BOYAN5A %1\DL install.bat > nul
  37. del %1\DL\install.bat
  38. pkunzip -d -o BOYAN5A %1\HOST\FILES install.bat > nul
  39. del %1\HOST\FILES\install.bat
  40. pkunzip -d -o BOYAN5A %1\FON install.bat > nul
  41. del %1\FON\install.bat
  42. if not exist %1\boyanold.fon goto 48
  43. echo │ ══ Your old FON directory is now "BOYANOLD.FON" ══ │
  44. copy %1\boyanold.fon %1\FON
  45. goto 48
  46. :45
  47. echo ├────────────────────────────────────────────────────┤
  48. echo │  ═══ Done installing onto BOYAN PROGRAM Disk ═══   │
  49. echo │                                                    │
  50. echo │   Please remove the Program Disk from drive %1 now │
  51. echo │   and replace it with the SCRIPTS & PROTOCOLS Disk.│
  52. if not exist readme.2 echo │   (DO NOT replace the BOYAN Distribution Disk.)    │
  53. echo │   »   Press [space] when ready to continue     «   │
  54. echo ├────────────────────────────────────────────────────┤
  55. pause > nul
  56. echo │   Creating %1\FON subdirectory ...                 │
  57. pkunzip -d -o BOYAN5A %1\FON install.bat > nul
  58. del %1\FON\install.bat
  59. echo │   Installing BOYAN script files ...                │
  60. pkunzip -d -o BOYAN5A %1\SCRIPT *.bsc > nul
  61. echo │   Installing "README" files ...                    │
  62. pkunzip -o BOYAN5A %1 read*.* *.doc *.txt > nul
  63. :48
  64. echo ├────────────────────────────────────────────────────┤
  65. if exist boyan5b.zip goto 50
  66. echo │   BOYAN5B.ZIP not found!                           │
  67. echo │   The BOYAN User's Manual will not be copied.      │
  68. goto 110
  69. :50
  70. pkunzip -o BOYAN5B %1 read*.* > nul
  71. %1\needfree %1 400
  72. if not errorlevel 1 goto 100
  73. echo │   To conserve space on the destination disk,       │
  74. echo │   the BOYAN User's Manual will not be copied.      │
  75. echo │┌──────────────────────────────────────────────────┐│
  76. echo ││  PLEASE TAKE NOTE:  To print the manual directly ││
  77. echo ││  from the boyan5b.zip file, use the command,     ││
  78. echo ││       PKUNZIP -P BOYAN5B BOYAN.DOC               ││
  79. echo │└──────────────────────────────────────────────────┘│
  80. goto 110
  81. :100
  82. echo │   Installing BOYAN documentation ...               │
  83. pkunzip -o BOYAN5B %1 boy*.* > nul
  84. :110
  85. echo ├────────────────────────────────────────────────────┤
  86. if not exist readme.1 goto 290
  87. echo │   The last phase of installation is to install     │
  88. echo │   several external protocol driver programs.       │
  89. echo │   Note that these programs are ShareWare, not      │
  90. echo │   written by Justin Boyan.  Please register        │
  91. echo │   those you use with their respective authors!     │
  92. echo ├────────────────────────────────────────────────────┤
  93. if exist readme.2 goto 120
  94. echo │   Please replace Distribution Disk 1 with Disk 2   │
  95. echo │ » now; then press [space] when ready to continue.« │
  96. echo ├────────────────────────────────────────────────────┤
  97. pause > nul
  98. :120
  99. if not exist dsz.zip goto 130
  100. echo │   Installing DSZ (Zmodem) protocol ...             │
  101. pkunzip -d -o dsz %1\prot *.exe *.com > nul
  102. :130
  103. if not exist pckermit.zip goto 140
  104. echo │   Installing PCKERMIT (Kermit) protocol ...        │
  105. pkunzip -d -o pckermit %1\prot *.exe *.com > nul
  106. :140
  107. if not exist ozbext.zip goto 150
  108. echo │   Installing OZBEXT (Compuserve-B) protocol ...    │
  109. pkunzip -d -o ozbext %1\prot *.exe *.com > nul
  110. :150
  111. if not exist ted.zip goto 160
  112. echo │   Installing TED (Tiny Editor) ...                 │
  113. pkunzip -o ted %1 *.com > nul
  114. :160
  115. goto 300
  116. :290
  117. echo │   Note:  BOYAN comes preconfigured to use several  │
  118. echo │   "external protocols," including Zmodem, Kermit,  │
  119. echo │   Compuserve-B, MPt, and BiModem.  For these to    │
  120. echo │   work, you need certain additional programs such  │
  121. echo │   as DSZ and PCKERMIT, available as Shareware.     │
  122. echo │   Consult README.2 and BOYAN.DOC for instructions  │
  123. echo │   on how to integrate those programs with BOYAN.   │
  124. :300
  125. echo ├────────────────────────────────────────────────────┤
  126. echo │             Installation completed!                │
  127. echo │                                                    │
  128. if not (%2)==(floppy) goto 320
  129. echo │   To run BOYAN 5.0 now, remove Distribution Disk 2 │
  130. echo │   and replace it with your BOYAN PROGRAM Disk.     │
  131. echo │   Leave the SCRIPTS & PROTOCOLS Disk in drive %1.  │
  132. echo │                                                    │
  133. del %1\needfree.exe
  134. goto run
  135. :320
  136. %1\needfree %1 CD
  137. del needfree.exe
  138. :run
  139. echo │     Press [space] to run BOYAN 5.0 now,  or        │
  140. echo │           [Ctrl-Break] to return to DOS.           │
  141. echo ╘════════════════════════════════════════════════════╛
  142. pause > nul
  143. boyan
  144. :end
  145.